import request from '@/utils/request'

// 查询航食公司基本信息列表
export function listAirlinefoodfirm(query) {
  return request({
    url: '/baseinfo/airlinefoodfirm/list',
    method: 'get',
    params: query
  })
}

// 查询航食公司基本信息详细
export function getAirlinefoodfirm(foodfirmid) {
  return request({
    url: '/baseinfo/airlinefoodfirm/' + foodfirmid,
    method: 'get'
  })
}

// 新增航食公司基本信息
export function addAirlinefoodfirm(data) {
  return request({
    url: '/baseinfo/airlinefoodfirm',
    method: 'post',
    data: data
  })
}

// 修改航食公司基本信息
export function updateAirlinefoodfirm(data) {
  return request({
    url: '/baseinfo/airlinefoodfirm',
    method: 'put',
    data: data
  })
}

// 删除航食公司基本信息
export function delAirlinefoodfirm(foodfirmid) {
  return request({
    url: '/baseinfo/airlinefoodfirm/' + foodfirmid,
    method: 'delete'
  })
}
